package com.demo.bean;

/**
 * @author xyd
 * @version V1.0
 * @Package com.demo.bean
 * @Description:
 * @date 2018/8/30 11:29
 */
public class UnionPayRequest {
    /**
     * 商户号码
     */
    private String merId = "";
    /**
     * 交易金额，单位分，不要带小数点
     */
    private String txnAmt = "";
    /**
     * 商户订单号，8-40位数字字母，不能含“-”或“_”，可以自行定制规则
     */
    private String orderId = "";
    /**
     * 订单发送时间，取系统时间，格式为YYYYMMDDhhmmss，必须取当前时间，否则会报txnTime无效
     */
    private String txnTime = "";
    /**
     * 版本号，全渠道默认值
     */
    private String version = "5.1.0";
    /**
     * 字符集编码，可以使用UTF-8,GBK两种方式
     */
    private String encoding = "UTF-8";
    /**
     * 签名方法
     */
    private String signMethod = "01";
    /**
     * 交易类型 ，01：消费
     */
    private String txnType = "01";
    /**
     * 交易子类型， 01：自助消费
     */
    private String txnSubType = "01";
    /**
     * 业务类型，B2C网关支付，手机wap支付
     */
    private String bizType = "000201";
    /**
     * 渠道类型，这个字段区分B2C网关支付和手机wap支付；07：PC,平板  08：手机
     */
    private String channelType = "07";
    /**
     * 接入类型，0：直连商户
     */
    private String accessType = "0";
    /**
     * 交易币种（境内商户一般是156 人民币）
     */
    private String currencyCode = "156";
    /**
     * 商品信息
     */
    private String riskRateInfo = "{commodityName=测试商品名称}";
    /**
     * 回调地址
     */
    private String frontUrl = "http://test.kuyuntech.com/unionpay/success.jsp";
    /**
     * 异步通知地址
     */
    private String backUrl = "http://test.kuyuntech.com/unionpay/demo/notify.action";
    /**
     * 订单超时时间
     */
    private String payTimeout = "";

    public String getMerId() {
        return merId;
    }

    public void setMerId(String merId) {
        this.merId = merId;
    }

    public String getTxnAmt() {
        return txnAmt;
    }

    public void setTxnAmt(String txnAmt) {
        this.txnAmt = txnAmt;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getTxnTime() {
        return txnTime;
    }

    public void setTxnTime(String txnTime) {
        this.txnTime = txnTime;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public String getSignMethod() {
        return signMethod;
    }

    public void setSignMethod(String signMethod) {
        this.signMethod = signMethod;
    }

    public String getTxnType() {
        return txnType;
    }

    public void setTxnType(String txnType) {
        this.txnType = txnType;
    }

    public String getTxnSubType() {
        return txnSubType;
    }

    public void setTxnSubType(String txnSubType) {
        this.txnSubType = txnSubType;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public String getAccessType() {
        return accessType;
    }

    public void setAccessType(String accessType) {
        this.accessType = accessType;
    }

    public String getCurrencyCode() {
        return currencyCode;
    }

    public void setCurrencyCode(String currencyCode) {
        this.currencyCode = currencyCode;
    }

    public String getRiskRateInfo() {
        return riskRateInfo;
    }

    public void setRiskRateInfo(String riskRateInfo) {
        this.riskRateInfo = riskRateInfo;
    }

    public String getFrontUrl() {
        return frontUrl;
    }

    public void setFrontUrl(String frontUrl) {
        this.frontUrl = frontUrl;
    }

    public String getBackUrl() {
        return backUrl;
    }

    public void setBackUrl(String backUrl) {
        this.backUrl = backUrl;
    }

    public String getPayTimeout() {
        return payTimeout;
    }

    public void setPayTimeout(String payTimeout) {
        this.payTimeout = payTimeout;
    }

    @Override
    public String toString() {
        return "UnionPayRequest{" +
                "merId='" + merId + '\'' +
                ", txnAmt='" + txnAmt + '\'' +
                ", orderId='" + orderId + '\'' +
                ", txnTime='" + txnTime + '\'' +
                ", version='" + version + '\'' +
                ", encoding='" + encoding + '\'' +
                ", signMethod='" + signMethod + '\'' +
                ", txnType='" + txnType + '\'' +
                ", txnSubType='" + txnSubType + '\'' +
                ", bizType='" + bizType + '\'' +
                ", channelType='" + channelType + '\'' +
                ", accessType='" + accessType + '\'' +
                ", currencyCode='" + currencyCode + '\'' +
                ", riskRateInfo='" + riskRateInfo + '\'' +
                ", frontUrl='" + frontUrl + '\'' +
                ", backUrl='" + backUrl + '\'' +
                ", payTimeout='" + payTimeout + '\'' +
                '}';
    }
}
